package com.iweb.work;
import com.iweb.test.dog;
public class work4 {
    public static void main(String[] args) {
        dog a=new dog();
        a.setColor("黄色");
        a.setName("花花公子");
        a.setWeight(32.5);
        System.out.println(a.getColor()+"\t"+a.getWeight()+"公斤"+"\t"+a.getName());

        dog b=new dog();
        b.setWeight(23.5);
        b.setName("黑熊");
        b.setColor("黑色");
        System.out.println(b.getColor()+"\t"+b.getWeight()+"公斤"+"\t"+b.getName());


    }
}
